from django.conf.urls.defaults import *
from merchant.apps.coupons.models import Coupon

info_dict = {
    'queryset': Coupon.active_objects.all(),
}

urlpatterns = patterns('django.views.generic.list_detail',
	url(r'^$', 'object_list', dict(info_dict), name='merchant_coupon_list'),
	url(r'^(?P<slug>[\w-]+)/$', 'object_detail', dict(info_dict), name='merchant_coupon_detail'),
)